import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'



 
const VueScrollTo = require('vue-scrollto')



// You can also pass in the default options

 



createApp(App).use(store).use(router).use(VueScrollTo).use(VueScrollTo, {
  container: 'body',   // 滚动元素
  duration: 500,  // 动画时长
  easing: 'ease',  // 动画曲线
  offset: 0,  // 滚动终点距离父元素顶部距离
  force: true,  // 强制立即执行，即便元素是可见的
  cancelable: true,
  onStart: false,
  onDone: false,
  onCancel: false,
  x: false, // x 轴禁止滚动
  y: true
}).use(Antd).use(ElementPlus).mount('#app')
  